<template>
    姓名:<input type="text" v-model="name"><br>
    工资:<input type="text" v-model="salary"><br>
    性别:
    <input type="radio" v-model="gender" value="man">男
    <input type="radio" v-model="gender" value="woman">女<br>
    学历:
    <select v-model="edu">
        <option value="-1">请选择</option>
        <option value="1">大专</option>
        <option value="2">本科</option>
        <option value="3">研究生</option>
        <option value="4">博士生</option>
    </select><br>
    爱好:
    <input type="checkbox" v-model="hobbies" value="eat">吃饭
    <input type="checkbox" v-model="hobbies" value="sleep">睡觉
    <input type="checkbox" v-model="hobbies" value="beat">打豆豆
</template>
<script setup>
import { ref } from 'vue';

const name = ref("admin")
const salary = ref(8000.0)
const gender = ref('man')
const edu = ref(3)
const hobbies = ref(['eat','beat'])
</script>